package com.rayboo.example.design.pattern.adapter.volt;

public class VoltAdapter implements LowVolt {

    public static final int COEFFICIENT = 44;

    private HighVolt mHighVolt;

    public VoltAdapter(HighVolt highVolt) {
        mHighVolt = highVolt;
    }

    @Override
    public int getFiveVolt() {
        int highVolt = mHighVolt.getVolt();
        return highVolt / COEFFICIENT;
    }
}
